package com.ziyun.erp.modules.goods.TwbVo;

import com.ziyun.erp.modules.goods.entity.GoodsEntity;
import com.ziyun.erp.modules.goods.entity.GoodsProductEntity;
import com.ziyun.erp.modules.goodsCategory.entity.GoodsCategoryEntity;

import java.util.List;

public class TwbGoodsVo {

    //spu信息
    private GoodsEntity goodsEntity;

    //sku信息列表
    private List<GoodsProductEntity> productEntityList;

    //sku矩阵信息
    private List<TwbItemVo> itemList;

    //该商品模板下的规格工艺选项
    private TwbAttributeVo attributeVo;

    //图片信息
    private ImageVo imageVo;

    //分类信息
    private GoodsCategoryEntity goodsCategoryEntity;

    //是否需要重新加载
    private Boolean needLoad;

    public GoodsEntity getGoodsEntity() {
        return goodsEntity;
    }

    public void setGoodsEntity(GoodsEntity goodsEntity) {
        this.goodsEntity = goodsEntity;
    }

    public List<GoodsProductEntity> getProductEntityList() {
        return productEntityList;
    }

    public void setProductEntityList(List<GoodsProductEntity> productEntityList) {
        this.productEntityList = productEntityList;
    }

    public List<TwbItemVo> getItemList() {
        return itemList;
    }

    public void setItemList(List<TwbItemVo> itemList) {
        this.itemList = itemList;
    }

    public TwbAttributeVo getAttributeVo() {
        return attributeVo;
    }

    public void setAttributeVo(TwbAttributeVo attributeVo) {
        this.attributeVo = attributeVo;
    }

    public ImageVo getImageVo() {
        return imageVo;
    }

    public void setImageVo(ImageVo imageVo) {
        this.imageVo = imageVo;
    }

    public GoodsCategoryEntity getGoodsCategoryEntity() {
        return goodsCategoryEntity;
    }

    public void setGoodsCategoryEntity(GoodsCategoryEntity goodsCategoryEntity) {
        this.goodsCategoryEntity = goodsCategoryEntity;
    }

    public Boolean getNeedLoad() {
        if(needLoad == null){
            return true;
        }
        return needLoad;
    }

    public void setNeedLoad(Boolean needLoad) {
        this.needLoad = needLoad;
    }
}
